package org.oneblog.service.tools;

public class GroupImageConf {

    private int x;
    private int y;
    private int width;
    private int height;
    public GroupImageConf(int x, int y, int width, int height) {
        super();
        this.x = x;
        this.y = y;
        this.width = width;
        this.height = height;
    }
    public int getX() {
        return x;
    }
    public void setX(int x) {
        this.x = x;
    }
    public int getY() {
        return y;
    }
    public void setY(int y) {
        this.y = y;
    }
    public int getWidth() {
        return width;
    }
    public void setWidth(int width) {
        this.width = width;
    }
    public int getHeight() {
        return height;
    }
    public void setHeight(int height) {
        this.height = height;
    }
    public int getXWithRadio(float f) {
        return (int) (this.x * f);
    }
    public int getYWithRadio(float f) {
        return (int) (this.y * f);
    }
    
    public int getWidthWithRadio(float f) {
        return (int) (this.width * f);
    }
    public int getHeightWithRadio(float f) {
        return (int) (this.height * f);
    }
}
